<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Company extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'company';

    public function CompanyData(){
        $CompanyData = self::all();
        foreach ($CompanyData as $k=>$v){
            $company_name[$k]=$v['company_name'];
        }
        return $company_name;
    }
}
